#!/bin/bash

cd ../../
mvn clean package -DskipTests=true

# 部署到远程服务器
scp goods-center/target/goods-center-0.0.1-SNAPSHOT.jar root@192.168.31.112:/usr/local/goods-center.jar

# 登录远程机器
ssh root@192.168.31.112 "cd /usr/local && sh /usr/local/restart_goods_center.sh"


# 部署到远程服务器
scp user-center/target/user-center-0.0.1-SNAPSHOT.jar root@192.168.31.113:/usr/local/user-center.jar

# 登录远程机器
ssh root@192.168.31.113 "cd /usr/local && sh /usr/local/restart_user_center.sh"

